<template>
    <div>
        <ul>
            <li v-for="(item,index) in list" :key="index">
                {{item.dirname?item.dirname:item.filename}}
                <test v-if="item.children" :list="item.children"></test>
            </li>
        </ul>
    </div>
</template>
<script>
export default {
    name:"test",
    props:{
        list:{
            type:Array,
            default:function(){
                return []
            }
        }
    }
}
</script>

<style>

</style>
